package com.mxpio.erp.inventory.service.impl;

import com.mxpio.erp.common.inventory.entity.VInvFlow;
import com.mxpio.erp.common.inventory.service.VInvFlowService;
import com.mxpioframework.jpa.JpaUtil;
import com.mxpioframework.jpa.query.Criteria;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author : 吴盼盼
 * @Datetime : 2022/11/10 15:17
 * @Desc :
 * @Modor :  Modifytime:
 * @modDesc :
 */
@Service
public class VInvFlowServiceImpl implements VInvFlowService {
    @Override
    @Transactional(readOnly = true)
    public List<VInvFlow> list(Criteria c) {
        return JpaUtil.linq(VInvFlow.class).where(c).list();
    }

    @Override
    @Transactional(readOnly = true)
    public Page<VInvFlow> listPage(Pageable pageAble, Criteria c) {
        return JpaUtil.linq(VInvFlow.class).where(c).paging(pageAble);
    }
}
